//
//  ModelOfOtherComment_list.m
//  FreeTravel
//
//  Created by 徐康 on 16/9/7.
//  Copyright © 2016年 KX. All rights reserved.
//

#import "ModelOfOtherComment_list.h"

@implementation ModelOfOtherComment_list
- (void)setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];
    NSMutableArray *arr1 = [NSMutableArray array];
    NSMutableArray *arr2 = [NSMutableArray array];
    if ([key isEqualToString:@"mycomment"]) {
        for (NSDictionary *dic in value) {
            ModelOfMycomment *model = [ModelOfMycomment modelWithDic:dic];
            [arr1 addObject:model];
        }
        self.mycomment = arr1;
    } if ([key isEqualToString:@"othercomment"]) {
        for (NSDictionary *dic in value) {
            ModelOfOthercomment *model = [ModelOfOthercomment modelWithDic:dic];
            [arr2 addObject:model];
        }
        self.othercomment = arr2;
    }
}
@end
